#!/usr/bin/env python
# xml tree <--> sqltree converter

# $Id$
"""
info processing

"""
from main_utils import *

def info ( options ) :
    connect ( options )
    show_tables ( options )
    show_sizes ( options )
    disconnect ( options )

def show_tables ( options ) :
    print 'Available tables:' ,
    for t in get_candidates ( options.conn , options.schema ) :
        print t ,
    print
    print 'Used tables:' ,
    for t in filtertables ( options.tables , options.conn , options.schema ) :
        print t.table_name ,
    print
#===========================================================
